package com.book.service;

import com.book.entity.Account;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author SuperYu  2024/7/30
 */
public interface AccountService {

    Account findAccountByLogin(String name);

    int addAccount(Account account);

    PageInfo<Account> findAccountByPage(int pageNum, int pageSize);

    List<Account> findAllAccount();

    Account findAccountByEdit(int id, String username);
}
